package org.example;

import java.util.ArrayList;
import java.util.List;

public class Main {
    static class Spare {
        public Integer price; // 购买单价
        public Integer detection; // 检测成本
        public Spare(Integer price, Integer detection) {
            this.price = price;
            this.detection = detection;
        }
    }
    static class SemiProduct {
        public Integer price; // 装配成本
        public Integer detection; // 检测成本
        public Integer dis; // 拆解费用

        public SemiProduct(Integer price, Integer detection, Integer dis) {
            this.price = price;
            this.detection = detection;
            this.dis = dis;
        }
    }
    static class Product {
        public Integer price = 8; // 装配成本
        public Integer detection = 6; // 检测成本
        public Integer dis = 10; // 拆解费用
        public Integer cost = 200; // 售价
        public Integer loss = 40; // 调换损失
    }
    private static void createData(Spare[] spares, SemiProduct[] seps) {
        spares[0] = new Spare(2, 1);
        spares[1] = new Spare(8, 1);
        spares[2] = new Spare(12, 2);
        spares[3] = new Spare(2, 1);
        spares[4] = new Spare(8, 1);
        spares[5] = new Spare(12, 2);
        spares[6] = new Spare(8, 1);
        spares[7] = new Spare(12, 2);
        for (int i = 0; i < seps.length; i++) {
            seps[i] = new SemiProduct(8, 4, 6);
        }
    }

}